package com.tjetc.input;

import org.junit.jupiter.api.Test;

import java.io.InputStream;
import java.util.Scanner;

public class _6InputStream {
    /*
        标准输入流：
     */

    @Test
    public void testSystemIn() {
        InputStream inputStream = System.in;
        System.out.println(inputStream.getClass()); // BufferedInputStream

        Scanner scanner = new Scanner(System.in);
        scanner.next();
    }

    @Test
    public void testSystemErr() {
        System.err.println("abc");
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        scanner.next();
    }


}
